using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using SalesPages.EntityFrameworkRepository.Mapping;
using SalesPages.DomainModel;

namespace SalesPages.EntityFrameworkRepository
{
    public partial class ET_EnglishFirstContext : DbContext
    {
        static ET_EnglishFirstContext()
        {
            Database.SetInitializer<ET_EnglishFirstContext>(null);
            
        }

        public ET_EnglishFirstContext()
            : base("Name=ET_EnglishFirstContext")
        {
            this.Configuration.LazyLoadingEnabled = false;
            this.Configuration.ProxyCreationEnabled = false;
        }

        public DbSet<ABTesting> ABTestings { get; set; }
        public DbSet<Administrator> Administrators { get; set; }
        public DbSet<AgeGroup_lkp> AgeGroup_lkp { get; set; }
        public DbSet<APUser> APUsers { get; set; }
        public DbSet<BaikeSnapshot> BaikeSnapshots { get; set; }
        public DbSet<BlockLead> BlockLeads { get; set; }
        public DbSet<CCComment> CCComments { get; set; }
        public DbSet<Consultant> Consultants { get; set; }
        public DbSet<ContactUs> ContactUs { get; set; }
        public DbSet<DataCounter> DataCounters { get; set; }
        public DbSet<dtproperty> dtproperties { get; set; }
        public DbSet<DynamicCombine> DynamicCombines { get; set; }
        public DbSet<DynamicCombineHistory> DynamicCombineHistories { get; set; }
        public DbSet<E1_SchoolNews> E1_SchoolNews { get; set; }
        public DbSet<E1City> E1City { get; set; }
        public DbSet<E1Config> E1Config { get; set; }
        public DbSet<E1ContentValue> E1ContentValue { get; set; }
        public DbSet<E1ContentValueAudit> E1ContentValueAudit { get; set; }
        public DbSet<E1ContentVariable> E1ContentVariable { get; set; }
        public DbSet<E1ContentVariableAudit> E1ContentVariableAudit { get; set; }
        public DbSet<E1Etag> E1Etag { get; set; }
        public DbSet<E1GraphicTag> E1GraphicTag { get; set; }
        public DbSet<E1Schools> E1Schools { get; set; }
        public DbSet<E1Vote> E1Vote { get; set; }
        public DbSet<E1WhiteList> E1WhiteList { get; set; }
        public DbSet<EfcnEtag> EfcnEtags { get; set; }
        public DbSet<ETContactU> ETContactUs { get; set; }
        public DbSet<Event> Events { get; set; }
        public DbSet<EventNew> EventNews { get; set; }
        public DbSet<Franchise> Franchises { get; set; }
        public DbSet<Game2> Game2 { get; set; }
        public DbSet<GamePlayerEmail> GamePlayerEmails { get; set; }
        public DbSet<GameStatistic> GameStatistics { get; set; }
        public DbSet<HearAbout> HearAbouts { get; set; }
        public DbSet<JobVacancy> JobVacancies { get; set; }
        public DbSet<LetterOpinion> LetterOpinions { get; set; }
        public DbSet<LetterUser> LetterUsers { get; set; }
        public DbSet<MapSetting> MapSettings { get; set; }
        public DbSet<MarketingChannel> MarketingChannels { get; set; }
        public DbSet<MarketQuestionnaire> MarketQuestionnaires { get; set; }
        public DbSet<MobileTopRotator> MobileTopRotators { get; set; }
        public DbSet<MobileTopRotatorContent> MobileTopRotatorContents { get; set; }
        public DbSet<NewsImage> NewsImages { get; set; }
        public DbSet<PageTemplate> PageTemplates { get; set; }
        public DbSet<PageTemplateContent> PageTemplateContents { get; set; }
        public DbSet<PartnerLink> PartnerLinks { get; set; }
        public DbSet<PhoneNumber> PhoneNumbers { get; set; }
        public DbSet<PortalResource> PortalResources { get; set; }
        public DbSet<PortalSchedule> PortalSchedules { get; set; }
        public DbSet<Press_image> Press_image { get; set; }
        public DbSet<Press_knowledge> Press_knowledge { get; set; }
        public DbSet<Press_NewsManager> Press_NewsManager { get; set; }
        public DbSet<Press_PressManager> Press_PressManager { get; set; }
        public DbSet<Press_PrintManager> Press_PrintManager { get; set; }
        public DbSet<Press_TVManager> Press_TVManager { get; set; }
        public DbSet<PressNew> PressNews { get; set; }
        public DbSet<ProductItem> ProductItems { get; set; }
        public DbSet<PromotionItem> PromotionItems { get; set; }
        public DbSet<Promotion> Promotions { get; set; }
        public DbSet<REDHireForm> REDHireForms { get; set; }
        public DbSet<REDLuckyDraw> REDLuckyDraws { get; set; }
        public DbSet<REDQuiz> REDQuizs { get; set; }
        public DbSet<RioLuckyDraw> RioLuckyDraws { get; set; }
        public DbSet<RioPrize> RioPrizes { get; set; }
        public DbSet<RioQuizHistory> RioQuizHistories { get; set; }
        public DbSet<RioSMSHistory> RioSMSHistories { get; set; }
        public DbSet<RioSMSToken> RioSMSTokens { get; set; }
        public DbSet<RioUser> RioUsers { get; set; }
        public DbSet<SchoolCMEmail> SchoolCMEmails { get; set; }
        public DbSet<SchoolDirection> SchoolDirections { get; set; }
        public DbSet<SchoolPromotion> SchoolPromotions { get; set; }
        public DbSet<SchoolSeo> SchoolSeos { get; set; }
        public DbSet<SchoolTour> SchoolTours { get; set; }
        public DbSet<SEOArticle> SEOArticles { get; set; }
        public DbSet<SEOArticleKeyword> SEOArticleKeywords { get; set; }
        public DbSet<SEOContent> SEOContents { get; set; }
        public DbSet<SEOHubContent> SEOHubContents { get; set; }
        public DbSet<SEORelatedLink> SEORelatedLinks { get; set; }
        public DbSet<SEOTag> SEOTags { get; set; }
        public DbSet<SEOTagContent_lnk> SEOTagContent_lnk { get; set; }
        public DbSet<SetCookieNumber> SetCookieNumbers { get; set; }
        public DbSet<SiteVersion> SiteVersions { get; set; }
        public DbSet<StudyTipsEmail> StudyTipsEmails { get; set; }
        public DbSet<Survey> Surveys { get; set; }
        public DbSet<SurveyQuestionType_lkp> SurveyQuestionType_lkp { get; set; }
        public DbSet<SurveyResult> SurveyResults { get; set; }
        public DbSet<SurveySession> SurveySessions { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }
        public DbSet<TextLink> TextLinks { get; set; }
        public DbSet<TopRotatorPromotion> TopRotatorPromotions { get; set; }
        public DbSet<TopRotatorPromotionCity_lnk> TopRotatorPromotionCity_lnk { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new ABTestingMap());
            modelBuilder.Configurations.Add(new AdministratorMap());
            modelBuilder.Configurations.Add(new AgeGroup_lkpMap());
            modelBuilder.Configurations.Add(new APUserMap());
            modelBuilder.Configurations.Add(new BaikeSnapshotMap());
            modelBuilder.Configurations.Add(new BlockLeadMap());
            modelBuilder.Configurations.Add(new CCCommentMap());
            modelBuilder.Configurations.Add(new ConsultantMap());
            modelBuilder.Configurations.Add(new ContactUsMap());
            modelBuilder.Configurations.Add(new DataCounterMap());
            modelBuilder.Configurations.Add(new dtpropertyMap());
            modelBuilder.Configurations.Add(new DynamicCombineMap());
            modelBuilder.Configurations.Add(new DynamicCombineHistoryMap());
            modelBuilder.Configurations.Add(new E1_SchoolNewsMap());
            modelBuilder.Configurations.Add(new E1CityMap());
            modelBuilder.Configurations.Add(new E1ConfigMap());
            modelBuilder.Configurations.Add(new E1ContentValueMap());
            modelBuilder.Configurations.Add(new E1ContentValueAuditMap());
            modelBuilder.Configurations.Add(new E1ContentVariableMap());
            modelBuilder.Configurations.Add(new E1ContentVariableAuditMap());
            modelBuilder.Configurations.Add(new E1EtagMap());
            modelBuilder.Configurations.Add(new E1GraphicTagMap());
            modelBuilder.Configurations.Add(new E1SchoolsMap());
            modelBuilder.Configurations.Add(new E1VoteMap());
            modelBuilder.Configurations.Add(new E1WhiteListMap());
            modelBuilder.Configurations.Add(new EfcnEtagMap());
            modelBuilder.Configurations.Add(new ETContactUMap());
            modelBuilder.Configurations.Add(new EventMap());
            modelBuilder.Configurations.Add(new EventNewMap());
            modelBuilder.Configurations.Add(new FranchiseMap());
            modelBuilder.Configurations.Add(new Game2Map());
            modelBuilder.Configurations.Add(new GamePlayerEmailMap());
            modelBuilder.Configurations.Add(new GameStatisticMap());
            modelBuilder.Configurations.Add(new HearAboutMap());
            modelBuilder.Configurations.Add(new JobVacancyMap());
            modelBuilder.Configurations.Add(new LetterOpinionMap());
            modelBuilder.Configurations.Add(new LetterUserMap());
            modelBuilder.Configurations.Add(new MapSettingMap());
            modelBuilder.Configurations.Add(new MarketingChannelMap());
            modelBuilder.Configurations.Add(new MarketQuestionnaireMap());
            modelBuilder.Configurations.Add(new MobileTopRotatorMap());
            modelBuilder.Configurations.Add(new MobileTopRotatorContentMap());
            modelBuilder.Configurations.Add(new NewsImageMap());
            modelBuilder.Configurations.Add(new PageTemplateMap());
            modelBuilder.Configurations.Add(new PageTemplateContentMap());
            modelBuilder.Configurations.Add(new PartnerLinkMap());
            modelBuilder.Configurations.Add(new PhoneNumberMap());
            modelBuilder.Configurations.Add(new PortalResourceMap());
            modelBuilder.Configurations.Add(new PortalScheduleMap());
            modelBuilder.Configurations.Add(new Press_imageMap());
            modelBuilder.Configurations.Add(new Press_knowledgeMap());
            modelBuilder.Configurations.Add(new Press_NewsManagerMap());
            modelBuilder.Configurations.Add(new Press_PressManagerMap());
            modelBuilder.Configurations.Add(new Press_PrintManagerMap());
            modelBuilder.Configurations.Add(new Press_TVManagerMap());
            modelBuilder.Configurations.Add(new PressNewMap());
            modelBuilder.Configurations.Add(new ProductItemMap());
            modelBuilder.Configurations.Add(new PromotionItemMap());
            modelBuilder.Configurations.Add(new PromotionMap());
            modelBuilder.Configurations.Add(new REDHireFormMap());
            modelBuilder.Configurations.Add(new REDLuckyDrawMap());
            modelBuilder.Configurations.Add(new REDQuizMap());
            modelBuilder.Configurations.Add(new RioLuckyDrawMap());
            modelBuilder.Configurations.Add(new RioPrizeMap());
            modelBuilder.Configurations.Add(new RioQuizHistoryMap());
            modelBuilder.Configurations.Add(new RioSMSHistoryMap());
            modelBuilder.Configurations.Add(new RioSMSTokenMap());
            modelBuilder.Configurations.Add(new RioUserMap());
            modelBuilder.Configurations.Add(new SchoolCMEmailMap());
            modelBuilder.Configurations.Add(new SchoolDirectionMap());
            modelBuilder.Configurations.Add(new SchoolPromotionMap());
            modelBuilder.Configurations.Add(new SchoolSeoMap());
            modelBuilder.Configurations.Add(new SchoolTourMap());
            modelBuilder.Configurations.Add(new SEOArticleMap());
            modelBuilder.Configurations.Add(new SEOArticleKeywordMap());
            modelBuilder.Configurations.Add(new SEOContentMap());
            modelBuilder.Configurations.Add(new SEOHubContentMap());
            modelBuilder.Configurations.Add(new SEORelatedLinkMap());
            modelBuilder.Configurations.Add(new SEOTagMap());
            modelBuilder.Configurations.Add(new SEOTagContent_lnkMap());
            modelBuilder.Configurations.Add(new SetCookieNumberMap());
            modelBuilder.Configurations.Add(new SiteVersionMap());
            modelBuilder.Configurations.Add(new StudyTipsEmailMap());
            modelBuilder.Configurations.Add(new SurveyMap());
            modelBuilder.Configurations.Add(new SurveyQuestionType_lkpMap());
            modelBuilder.Configurations.Add(new SurveyResultMap());
            modelBuilder.Configurations.Add(new SurveySessionMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new TextLinkMap());
            modelBuilder.Configurations.Add(new TopRotatorPromotionMap());
            modelBuilder.Configurations.Add(new TopRotatorPromotionCity_lnkMap());
        }
    }
}
